#-*- coding: utf8 -*-
from tutor.scripts import *
from tutor.plugins.sympy import *

while True:
    with display_block('Entradas'):
        S = One * oneof(2, 3, 4, 5, 8, 9, 12)
        eq_superficie = z + x ** 2 + y ** 2 - S

    with display_block('Resultados'):
        correta = sqrt(S - One/4)
        dis_1 = S
        dis_2 = sqrt(S)
        dis_3 = 2 * correta 
        dis_4 = sqrt(S) / 2
        dis_5 = expand((S - One/4) * sqrt(2) / 2)

        if len(set([correta, dis_1, dis_2, dis_3, dis_4, dis_5])) != 6:
            continue
        else:
            break
